NameError: name 'module1' is not defined when running ./manage.py test in Django
Django
2018-03-29 06:37 (8 years ago)

In Django,
./manage.py test
when you encounter the error
NameError: name 'module1' is not defined
If you are using Python 3.4, the quickest solution is to update to Python 3.6 or a later version.
Please rate this article (No signup or login required)
Currently unrated
Related posts
Preventing "table already exists" error when canceling migrations in Django tests
Fix: pipenv install fails with AttributeError: module 'pkgutil' has no attribute 'ImpImporter' (Python 3.12)
The "first" and "second" Arguments of assertEqual in Django's Unit Tests are Actually "expected" and "actual"
To Create a Request in Django Unit Tests, Retrieving the wsgi_request from the Response is Convenient
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.